package com.example.auth.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;


import javax.validation.constraints.Email;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * @author: LiYang
 * @create: 2023-07-10 16:26
 * @Description:
 * @Version 1.0
 **/
@Data
public class SysUserCreateDTO implements Serializable {

    /**
     * 用户名
     */
    @Length(min=6, max=20,message = "用户名必须在6-20位之间")
    private String username;


    /**
     * 密码
     */
    @Length(min=6, max=20,message = "密码必须在6-20位之间")
    private String password;

    /**
     * 姓名
     */
    @Length(min=2, max=50,message = "姓名必须在2-50位之间")
    private String name;

    /**
     * 性别
     */
    private Integer gender;

    /**
     * 手机
     */
    private String phone;

    /**
     * 邮箱
     */
    @Email(message = "邮箱不合法")
    private String email;

    /**
     * 备注
     */
    @Length(min = 0,max = 500,message = "备注最长为500位")
    private String description;

    /**
     * 状态（1：有效 0：无效）
     */
    private Integer status;

}
